home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-01-18 | 1.1 KB | 51 lines | [TEXT/MPS ] |
- // MAEGestalt.cp
- // Copyright © 1991-92 by Apple Computer, Inc. All rights reserved.
- // Kent Sandvik DTS
- // This is the main-main file, it all starts here...
- //
- // <1> khs 1.0 First final version
-
-
- // INCLUDES
-
- #ifndef __AEGESTALT__
- #include "UAEGestalt.h"
- #endif
-
-
- // T H E M A I N P R O G R A M
-
- #pragma processor 68000
- #pragma segment Main
-
-
- // the application object
- TAEApplication* gAEApplication = NULL;
-
- void main()
- {
- // essential toolbox and utilities initialization
- InitToolBox();
-
- // make sure we can run
- if (ValidateConfiguration(gConfiguration) && gConfiguration.hasColorQD && gConfiguration.hasAppleEventMgr)
- {
- // we made it! Continue with remainder of initialization
- // initialize MacApp; 8 calls to MoreMasters
- InitUMacApp(8);
- // initialize the TDialog view handling
- InitUDialog();
-
- // construct a new TAEApplication object, allocation errors are checked for.
- gAEApplication = new TAEApplication;
- gAEApplication->IAEApplication(kFileType, kSignature);
-
- // run the application, when it's done - exit.
- gAEApplication->Run();
- }
- else
- StdAlert(phUnsupportedConfiguration);
- }
-
-
-